import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

@Entity('content_attributes')
export class YaContentAttributes {
  @PrimaryGeneratedColumn({
    name: 'id',
    type: 'int',
    comment: 'id',
  })
  id: number;

  @Column({
    name: 'content_id',
    type: 'int',
    default: 0,
    comment: '内容id',
  })
  contentId: number;

  @Column({
    name: 'category_id',
    type: 'int',
    default: 0,
    comment: '分类id',
  })
  categoryId: number;

  @Column({
    name: 'tag_id',
    type: 'int',
    default: 0,
    comment: '标签id',
  })
  tagId: number;

  @Column({
    name: 'file_id',
    type: 'int',
    default: 0,
    comment: '文件id',
  })
  fileId: number;

  @Column({
    name: 'file_type',
    type: 'varchar',
    length: 11,
    default: '',
    comment: '文件类型',
  })
  fileType: string;
}